<script type="text/javascript">
{literal}
    $(document).ready(function(){
        $('#issueDateLbx').change(function(){
            loadInputMedicineDetail();
        });
        loadInputMedicineDetail();
    });
{/literal}
</script>
<div>
    <fieldset style="width: 600px;">
        <legend><span class="label" style="text-transform: uppercase">{translate}Input medicine, materials{/translate}</span></legend>
        <span class="formAlertMsg" id="statusMessage" style="padding-left: 5px;"></span>
	    <table class="grid inline">
	        <tr>
	            <td><span class="label">{translate}Doctor{/translate}</span></td>
	            <td><select name="doctorLbx" id="doctorLbx" style="width: 145px;">
	                    <option value="0" label="- - -">- - -</option>
	                    {html_options options=$doctorList}
	                </select>
	            </td>
	            <td><span class="label">{translate}Issue person{/translate}</span></td>
	            <td>
	                <select name="issuePersonLbx" id="issuePersonLbx" style="width: 145px;">
	                    <option value="0" label="- - -">- - -</option>
	                    {html_options options=$employeeList}
	                </select>
	            </td>
	            <td width="100" align="right" valign="top" rowspan="3">
	                <div id="issueDateLoaderDiv" style="display: none;">
	                    <img src="{$base_uri}/images/ajax-loader.gif"/>
	                </div>
	            </td>
	        </tr>
	        <tr>
	            <td><span class="label">{translate}Issue date{/translate}</span></td>
	            <td>
	                <select name="issueDateLbx" id="issueDateLbx" style="width: 145px;">
	                    {html_options options=$issueDates}
	                </select>
	            </td>
	            <td colspan="2">&nbsp;</td>
	        </tr>
	    </table>
    </fieldset>
</div>

<div class="separator"></div>

<div style="width: 602px;" align="left">
    <input type="button" name="viewMedicineBtn" id="viewMedicineBtn" onclick='javascript:showViewPage();' value="&lt;&lt; {translate}View medicine, materials{/translate} &lt;&lt;">
</div>

<div class="separator"></div>

<div id="inputMedicineContentDiv">
    
</div>